<template>
  <div>
      <span v-for="( item,index) in app"
      :key="index">
      <input type="checkbox" :value="item"  v-model="base">
      {{item}}
      </span>
      <!-- <input type="checkbox" value="科幻" v-model="app">科幻
      <input type="checkbox" value="喜剧" v-model="app">喜剧
      <input type="checkbox" value="动漫" v-model="app">动漫
      <input type="checkbox" value="冒险" v-model="app">冒险
      <input type="checkbox" value="科技" v-model="app">科技
      <input type="checkbox" value="军事" v-model="app">军事
      <input type="checkbox" value="娱乐" v-model="app">娱乐
      <input type="checkbox" value="奇闻" v-model="app">奇闻 -->
<ul>
    <li v-for="item in base"
    :key="item">
    {{item}}
    </li>
</ul>
  </div>
</template>

<script>
export default {
data(){
    return {
        app:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
        base:[]
    }
}
}
</script>

<style>

</style>